home *** CD-ROM | disk | FTP | other *** search
/ L' Hygiene Au Quotidien / L'Hygiene Au Quotidien.iso / mac / Site / enfants / images / carte2 / salon.swf / scripts / frame_72 / DoAction.as
Text File  |  2003-07-25  |  582b  |  38 lines

  1. function show()
  2. {
  3.    coef = _level0.time - stoptime;
  4.    if(stoptime >= _level0.time)
  5.    {
  6.       gotoAndPlay(73);
  7.    }
  8.    else
  9.    {
  10.       spid = int(coef / 10);
  11.       if(spid < 1)
  12.       {
  13.          spid = 1;
  14.       }
  15.       i = random(12) + 1;
  16.       burk = eval("b" + i);
  17.       if(burk._currentframe == 1)
  18.       {
  19.          burk.spid = spid;
  20.          burk.play();
  21.       }
  22.       else
  23.       {
  24.          show();
  25.       }
  26.    }
  27. }
  28. function frap()
  29. {
  30.    if(plumo.target.hitTest(burk))
  31.    {
  32.       trace("hit");
  33.       burk.gotoAndPlay(9);
  34.    }
  35. }
  36. stop();
  37. show();
  38.